package wqh.domain;


public class AlarmEventConfirm {

    private Integer id;
    private Integer unix_alarm_time;
    private Integer unix_confirm_time;
    private String area;
    private String building;
    private String floor;
    private String device_name;
    private String device_ip;
    private Byte channel_number;
    private String monitor_name;
    private String alarm_type;
    private String alarm_data;
    private String unit;
    private String user;

    public AlarmEventConfirm()
    {

    }

    public AlarmEventConfirm(AlarmEvent alarmEvent,String user)
    {
        this.id = null;
        this.unix_alarm_time = alarmEvent.getUnix_time();
        this.unix_confirm_time = (int)(System.currentTimeMillis()/1000);
        this.area = alarmEvent.getArea();
        this.building = alarmEvent.getBuilding();
        this.floor = alarmEvent.getFloor();
        this.device_name = alarmEvent.getDevice_name();
        this.device_ip = alarmEvent.getDevice_ip();
        this.channel_number = alarmEvent.getChannel_number();
        this.monitor_name = alarmEvent.getMonitor_name();
        this.alarm_type = alarmEvent.getAlarm_type();
        this.alarm_data = alarmEvent.getAlarm_data();
        this.unit = alarmEvent.getUnit();
        this.user = user;
    }

    @Override
    public String toString() {
        return "AlarmEventConfirmDao{" +
                "id=" + id +
                ", unix_alarm_time=" + unix_alarm_time +
                ", unix_confirm_time=" + unix_confirm_time +
                ", area='" + area + '\'' +
                ", building='" + building + '\'' +
                ", floor='" + floor + '\'' +
                ", device_name='" + device_name + '\'' +
                ", device_ip='" + device_ip + '\'' +
                ", channel_number=" + channel_number +
                ", monitor_name='" + monitor_name + '\'' +
                ", alarm_type='" + alarm_type + '\'' +
                ", alarm_data='" + alarm_data + '\'' +
                ", unit='" + unit + '\'' +
                ", user='" + user + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUnix_alarm_time() {
        return unix_alarm_time;
    }

    public void setUnix_alarm_time(Integer unix_alarm_time) {
        this.unix_alarm_time = unix_alarm_time;
    }

    public Integer getUnix_confirm_time() {
        return unix_confirm_time;
    }

    public void setUnix_confirm_time(Integer unix_confirm_time) {
        this.unix_confirm_time = unix_confirm_time;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getBuilding() {
        return building;
    }

    public void setBuilding(String building) {
        this.building = building;
    }

    public String getFloor() {
        return floor;
    }

    public void setFloor(String floor) {
        this.floor = floor;
    }

    public String getDevice_name() {
        return device_name;
    }

    public void setDevice_name(String device_name) {
        this.device_name = device_name;
    }

    public String getDevice_ip() {
        return device_ip;
    }

    public void setDevice_ip(String device_ip) {
        this.device_ip = device_ip;
    }

    public Byte getChannel_number() {
        return channel_number;
    }

    public void setChannel_number(Byte channel_number) {
        this.channel_number = channel_number;
    }

    public String getMonitor_name() {
        return monitor_name;
    }

    public void setMonitor_name(String monitor_name) {
        this.monitor_name = monitor_name;
    }

    public String getAlarm_type() {
        return alarm_type;
    }

    public void setAlarm_type(String alarm_type) {
        this.alarm_type = alarm_type;
    }

    public String getAlarm_data() {
        return alarm_data;
    }

    public void setAlarm_data(String alarm_data) {
        this.alarm_data = alarm_data;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }
}
